package de.mhus.lib.mandala.widgets;

import de.mhus.lib.mandala.AbstractComponent;
import de.mhus.lib.mandala.Response;

public class Button extends AbstractComponent {

	
	
	public Button(String caption) {
		super(caption);
	}

	@Override
	protected void doRender(Response out) {
		out.startTag("button", "btn", getTagAttributes(), "type", "button");
		if (caption != null) caption.doRender(this, out);
		out.endTag("button");
	}

}
